package cn.edu.gues.infosystam.service.impl;

import cn.edu.gues.infosystam.entity.Student;
import cn.edu.gues.infosystam.mapper.StudentMapper;
import cn.edu.gues.infosystam.service.StudentService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 苏小小
 * @since 2020-06-11
 */
@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements StudentService {


    @Override
    public Student getStudent(String sno) {
        return this.baseMapper.getStudent(sno);
    }

    @Override
    public IPage<Student> getStudents(Page<Student> page) {
        return this.baseMapper.getStudents(page);
    }

    @Override
    public IPage<Student> getReportStudents(Page<Student> page,Integer taskId, String college, String classes) {
        return this.baseMapper.getReportStudents(page,taskId, college, classes);
    }

    @Override
    public IPage<Student> getReportTaskStudents(Page<?> page, Integer taskId) {
        return this.baseMapper.getReportTaskStudents(page, taskId);
    }

    @Override
    public Integer getReportTaskStudentsTotal(Integer taskId, String college, String classes) {
        return this.baseMapper.getReportTaskStudentsTotal(taskId, college, classes);
    }
}
